package net.lee.springcloudclient.controller;

import net.lee.springcloudclient.service.ISayHelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    ISayHelloService sayHelloService;

    @GetMapping("/sayhello")
    public String sayHello(String name)
    {
        return  sayHelloService.sayHello(name);
    }
}
